package com.mall.util.distributed.raft.rpc.message;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 投票响应
 */
@Data
@Accessors(chain = true)
public class ResponseVote implements Serializable {
    @Schema(description = "任期")
    private long term;

    @Schema(description = "是否投票给当前结点")
    private boolean voteGranted;
}
